package com.thf.controller;



import com.thf.service.IPmsBrandService;
import com.thf.util.ResultJson;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;


/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author tanghf
 * @since 2021-10-18
 */
@RestController
@RequestMapping("/pms-brand")
public class PmsBrandController {
     @Resource
     IPmsBrandService brandService;
     @GetMapping("/list")
     ResultJson list(Integer pageNo , Integer pageSize , String name) {
//          System.out.println(pageNo);
//          System.out.println(pageSize);
//          TimeUnit.SECONDS.sleep(3);
//          int a = 10/0;
//          return brandService.list();
          return ResultJson.success( brandService.page(pageNo,pageSize,name));
     }
}
